FUNCTION
create_message_from_template
function create_message_from_template(evm_auth_args: evm_auth_args, message_template: text, args: list<gtv>, nonce: text): textCreates the message that should be signed on an EVM wallet to approve the given operation.
Throws "MISCONFIGURED MESSAGE" if the template doesn't have a nonce placeholder or
a blockchain RID placeholder, both of which should be added to the template in advance by
utils.make_auth_message
Parameters
- evm_auth_args — the arguments for the
evm_authoperation - message_template — the template for this operation's message
- args — the arguments to this operation
- nonce — the nonce that should be included to prevent replay attacks
© 2024 Chromia